---
apiVersion: v1
kind: Service
metadata:
  name: storm-nimbus
  namespace: spark-cluster
spec:
  type: NodePort
  ports:
  - name: nimbus
    port: 6627
    nodePort: 30627
  - name: ssh
    port: 22
  selector:
    name: nimbus

---
apiVersion: v1
kind: ReplicationController 
metadata:
    name: storm-nimbus
    namespace: spark-cluster
spec:
    replicas: 1
    template:
        metadata:
            labels:
                name: nimbus
        spec:
            containers:
            - name: nimbus
              image: index.tenxcloud.com/zhangshun/storm-nimbus:1.0.2
              ports:
              - containerPort: 6627
              - containerPort: 22
              env:
              - name: ZOOKEEPER_SERVICE_HOST
                value: kafka-zoo-svc

              resources:
                limits:
                  cpu: 100m

